<?php
$form = $this->beginWidget('CActiveForm', array(
            'id' => 'ref-country-form',
            'enableAjaxValidation' => false,
        ));
?>
<div class="block">
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
        Fields with <span class="required"><strong>*</strong></span> are required.
    </div>

    <?php echo $form->errorSummary($model); ?>

    <?php echo $form->labelEx($model, 'country_name'); ?>
    <?php echo $form->textField($model, 'country_name', array('size' => 60, 'maxlength' => 100)); ?>
    <?php echo $form->error($model, 'country_name'); ?>

    <?php echo $form->labelEx($model, 'country_iso_code'); ?>
    <?php echo $form->textField($model, 'country_iso_code', array('size' => 5, 'maxlength' => 5)); ?>
    <?php echo $form->error($model, 'country_iso_code'); ?>

    <?php echo $form->labelEx($model, 'country_phone_code'); ?>
    <?php echo $form->textField($model, 'country_phone_code', array('size' => 25, 'maxlength' => 25)); ?>
    <?php echo $form->error($model, 'country_phone_code'); ?>

    <button class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span><?php echo ($model->isNewRecord) ? 'Create' : 'Save'; ?></span></button>

    <?php $this->endWidget(); ?>

</div>
<!-- form -->